How To Code A Binary Indexed Tree/Fenwick Tree